package com.tz.crm.utils;

/**
 * 线程变量的存取
 */
public class RequestTypeThreadLocal {
    //变量的存取 by thread
    private static ThreadLocal<String> threadLocal = new ThreadLocal<>();

    /**
     *
     * @return String 线程变量
     */
    public static String get(){
        return threadLocal.get();
    }

    /**
     *
     * @param s 变量
     */
    public static void set(String s){
        threadLocal.set(s);
    }
}
